<?php

namespace App\Repositories;

use App\Models\SystemLog;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class DeviceRepository
 * @package App\Repositories
 * @version December 25, 2017, 9:32 am UTC
 *
 * @method Device findWithoutFail($id, $columns = ['*'])
 * @method Device find($id, $columns = ['*'])
 * @method Device first($columns = ['*'])
 */
class LogRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'name'=>'like',
        'true_name'=>'like',
        'ip'=>'like',
        'type',
        'status'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return SystemLog::class;
    }
}
